import { HTTP } from "../utils/http.js";
class CourseApi extends HTTP {
	// 获取我的课程列表
	GetMyOrder(data) {
		return this.request({
			url: "my_order",
			method: "GET",
			data
		})
	}
	
	// 获取我的课程详情
	GetMyOrderDetail(data) {
		return this.request({
			url: "order_detail",
			method: "GET",
			data
		})
	}
	
	// 提交调课申请
	PostOrderChange(data) {
		return this.request({
			url: "order_change",
			method: "POST",
			data
		})
	}
	
	// 获取全部课程列表
	GetAllCourse(data) {
		return this.request({
			url: "all_course",
			method: "GET",
			data
		})
	}
	
	// 获取课程详情
	GetAllCourseDetail(data) {
		return this.request({
			url: "course_detail",
			method: "GET",
			data
		})
	}
	
	// 购买课程
	PostBuyCourse(data) {
		return this.request({
			url: "buy",
			method: "GET",
			data
		})
	}
}

export default new CourseApi();